package com.cnbm.wcsbasic.protocol.netty.io.common;


import java.util.Arrays;

/**
 * @Desc: "通用的数据传输底层类"
 * @Author: caixiang
 * @DATE: 2022/10/18 16:22
 */
public class Package {

    private byte[] body;
    private String transationId;


    public Package(byte[] body, String transationId) {
        this.body = body;
        this.transationId = transationId;
    }

    public byte[] getBody() {
        return body;
    }

    public void setBody(byte[] body) {
        this.body = body;
    }

    public String getTransationId() {
        return transationId;
    }

    public void setTransationId(String transationId) {
        this.transationId = transationId;
    }

    @Override
    public String toString() {
        return "Package{" +
                "body=" + Arrays.toString(body) +
                ", transationId='" + transationId + '\'' +
                '}';
    }
}
